home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / mempools.lha / mempools / DMakefile < prev    next >
Encoding:
Makefile  |  1994-12-05  |  3.0 KB  |  124 lines

  1. ###
  2. ###  MemPools:    malloc() replacement using standard Amiga pool functions.
  3. ###  Copyright    (C)  1994    Jochen Wiedmann
  4. ###
  5. ###  This program is free software; you can redistribute it and/or modify
  6. ###  it under the terms of the GNU General Public License as published by
  7. ###  the Free Software Foundation; either version 2 of the License, or
  8. ###  (at your option) any later version.
  9. ###
  10. ###  This program is distributed in the hope that it will be useful,
  11. ###  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ###  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ###  GNU General Public License for more details.
  14. ###
  15. ###  You should have received a copy of the GNU General Public License
  16. ###  along with this program; if not, write to the Free Software
  17. ###  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. ###
  19. ###
  20. ###  This is the Makefile for DMake.
  21. ###
  22. ###
  23. ###  Computer:    Amiga 1200
  24. ###
  25. ###  Compilers: Dice 3.01
  26. ###        SAS/C 6.3
  27. ###        gcc 2.6.1
  28. ###
  29. ###
  30. ###  Author:    Jochen Wiedmann
  31. ###        Am Eisteich 9
  32. ###      72555 Metzingen
  33. ###        Germany
  34. ###
  35. ###        Phone: (0049) 7123 14881
  36. ###        Internet: jochen.wiedmann@uni-tuebingen.de
  37. ###
  38.  
  39.  
  40. SRCS=calloc.c free.c init.c malloc.c realloc.c strdup.c \
  41.      MemPoolPuddleSize.c MemPoolThreshSize.c MemPoolFlags.c
  42.  
  43. LIBS=mempoolss.lib mempoolssr.lib mempools.lib libmempools.a
  44.  
  45. DIST=Makefile SMakefile DMakefile lib.def COPYING MemPools.readme \
  46.      TimeMem.c TimeProg.c
  47.  
  48. CFLAGS=-proto
  49.  
  50. ############################################################################
  51. ###
  52. ###  Targets: all clean dist check time
  53. ###
  54. ############################################################################
  55.  
  56. all: mempoolss.lib mempoolssr.lib
  57.  
  58. dist: distall dodist
  59.  
  60. distall: mempoolss.lib mempoolssr.lib
  61.     @Delete #?.o quiet
  62.     @smake mempools.lib
  63.     @Delete #?.o quiet
  64.     @gmake libmempools.a
  65.  
  66. dodist:
  67.     @cd /
  68.     @Delete MemPools.lha quiet
  69.     lha a -x MemPools.lha $(SRCS:*:MemPools/%1) $(LIBS:*:MemPools/%1) \
  70.                   $(DIST:*:MemPools/%1)
  71.     @cd mempools
  72.  
  73. mempoolss.lib:
  74.     lbmake mempools s
  75.  
  76. mempoolssr.lib:
  77.     lbmake mempools s r
  78.  
  79. mempools.lib:
  80.     smake mempools.lib
  81.  
  82. libmempools.a:
  83.     gmake libmempools.a
  84.  
  85. clean:
  86.     @Delete #?.o #?.lib lib#?.a dtmp:comp? all quiet
  87.  
  88. check: TimeMem
  89.     @avail flush
  90.     @TimeMem VERBOSE
  91.     @avail flush
  92.  
  93. time: TimeMem TimeMem.dice TimeMem.sas TimeMem.ixemul TimeMem.libnix TimeProg
  94.     @echo You'd better get a cup of coffee now ...
  95.     @echo
  96.     @echo Timing Dice functions:
  97.     @TimeProg "TimeMem.dice"
  98.     @echo Timing SAS/C functions
  99.     @TimeProg "TimeMem.sas"
  100.     @echo Timing ixemul functions
  101.     @TimeProg "TimeMem.ixemul"
  102.     @echo Timing libnix functions
  103.     @TimeProg "TimeMem.libnix"
  104.     @echo Timing MemPool functions
  105.     @TimeProg "TimeMem"
  106.  
  107. TimeMem: TimeMem.c rand.c mempoolss.lib
  108.     dcc $(CFLAGS) -o TimeMem TimeMem.c rand.c -lmempools
  109.  
  110. TimeMem.dice: TimeMem.c rand.c
  111.     dcc $(CFLAGS) -o TimeMem.dice TimeMem.c rand.c
  112.  
  113. TimeMem.sas: TimeMem.c
  114.     smake TimeMem.sas
  115.  
  116. TimeMem.ixemul: TimeMem.c
  117.     gmake TimeMem.ixemul
  118.  
  119. TimeMem.libnix: TimeMem.c
  120.     gmake TimeMem.libnix
  121.  
  122. TimeProg: TimeProg.c
  123.     dcc $(CFLAGS) -o TimeProg TimeProg.c
  124.